home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / unclcarl / belef23d / belef203.txt < prev    next >
Text File  |  1995-04-25  |  82KB  |  1,920 lines

  1.  *%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%
  2. %                                                                              %
  3. %                                   BELEF II                                   %
  4. %                                                                              %
  5. %                              pronounced: BELL*EFF                            %
  6. %                                                                              %
  7. %                 Uncle Carl's Famous Archive Shell & Converter                %
  8. %                 =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=                %
  9. %                    (C) Carl J. Hafner - ALL RIGHTS RESERVED                  %
  10. %                                 Version 2.03d                                %
  11. %                                                                              %
  12.  *%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%*%
  13.  
  14.                           RELEASE DATE: June 11, 1994
  15.  
  16.     Belef can best be described as a universal compression utility shell.
  17.     It is universal in the sense that it should work with ANY compression
  18.     utility, past, present or future ! ALL of the functions associated
  19.     with your favorite parameter taking compression utility are available,
  20.     as well as the ability to convert one form of archival storage file
  21.     into another with a minimum of effort !
  22.  
  23.     Belef works on all ST/STe/TT computers in low, medium & high resolutions.
  24.  
  25.  
  26.                                    DISCLAIMER
  27.     -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-
  28.     The author cannot be responsible for any damage to your equipment, other
  29.     software or hardware products, or physical or mental well being caused
  30.     by the use, misuse, abuse or inability to use this program.
  31.  
  32.     The author also makes no guarantee as to the compatibility of this
  33.     program with other software or hardware products.
  34.  
  35.     Using this program means that you completely understand AND agree with
  36.     these terms. If you do NOT understand AND agree, DO NOT use this program.
  37.     -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-
  38.  
  39.                                     CAUTION
  40.     -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-
  41.     Belef works by allowing YOU to configure and save the interface settings.
  42.     If an error occurs AFTER you have instructed Belef to carry out your
  43.     instructions, it is POSSIBLE that you may have entered the commands
  44.     incorrectly. PLEASE be certain to enter the correct command codes 
  45.     (available with your compression utility) and control codes (where
  46.     applicable) on the configuration screen.
  47.     -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-
  48.  
  49.  
  50.                                 TABLE OF CONTENTS
  51.                                 -----------------
  52.  
  53.   INTRODUCTION
  54.  
  55.   1) MAIN PANEL
  56.        a) Command Buttons
  57.        b) Option Buttons
  58.        c) Execute Buttons
  59.        d) Convert/Chain Button
  60.        e) Arrows
  61.            Identifying LZH formats
  62.        f) Exit Button
  63.        g) Low Resolution Support
  64.   2) PREFERENCES
  65.        a) Confirmation prompts
  66.        b) Pause after TOS Apps
  67.        c) Confirm Overwrites
  68.        d) Confirm Deletes
  69.        e) Mouse Snapping
  70.            UncleMouse support (.CUR files)
  71.        f) Select Buttons
  72.   3) CONFIGURE
  73.        a) Utility
  74.        b) Commands
  75.        c) Control Code commands
  76.        d) Names
  77.        e) Options
  78.        f) Encryption
  79.        g) TEMPorary work directory
  80.        h) Scrolling Setups / Button
  81.        i) Load
  82.            Default files
  83.        j) Save
  84.        k) Paths
  85.        l) Okay
  86.        m) Cancel
  87.   4) COMMAND
  88.        a) Buttons
  89.        b) Command Line
  90.        c) File
  91.        d) TEMP
  92.        e) Execute
  93.        f) Convert/Chain
  94.        g) Paths
  95.        h) Exit
  96.   5) FILE
  97.        a) Copy/Move file(s)
  98.        b) Delete file(s)
  99.        c) Rename file
  100.        d) Disk space
  101.        e) Create folder
  102.        f) Delete folder
  103.        g) Rename folder
  104.        h) Exit
  105.   6) EXTRACTION OPTIONS
  106.        a) All
  107.        b) Folder
  108.        c) Query
  109.        d) Cancel
  110.   7) SELECTING TEMP DIRECTORIES
  111.   8) CREDITS
  112.   9) DISTRIBUTION
  113.  10) REGISTRATION
  114.  11) VERSION HISTORY
  115.  12) TROUBLESHOOTING
  116.          Memory allocation (MALLOC)
  117.          .ZOO compatibility
  118.          Mouse snapping
  119.  13) OTHER STUFF
  120.        a) Fileselector messages
  121.        b) Fileselector paths
  122.        c) About archive files
  123.        d) RAM disks
  124.        e) New form_do
  125.        f) Sample session
  126.        g) Group Extractions/Wildcards
  127.        h) On screen help
  128.        i) Wildcards
  129.        j) Missing disk space
  130.        k) Belef script indirection
  131.  14) CONTROL CODES ADDENDUM
  132.  15) INDEX
  133.  
  134.  
  135.                                   INTRODUCTION
  136.                                   ------------
  137.    The biggest problem I've personally encountered with archive shells was
  138.    that most of them were too inflexible. That is to say that they either
  139.    worked with only specific compression utilities or they didn't allow
  140.    FULL access to ALL of the features available from within that utility.
  141.    
  142.    With that in mind, I designed Belef so that it worked like a command
  143.    line interface box (the kind you get when you double-click on a .TTP
  144.    program from the GEM desktop) with the ease of simply selecting buttons.
  145.  
  146.    Belef works by allowing YOU to enter commands and options on a
  147.    configuration screen. You then add a descriptive name TO that function
  148.    and Belef automatically passes YOUR name, command and options to the
  149.    buttons on the front panel. Selecting that button registers YOUR
  150.    commands and options !
  151.  
  152.    This should allow Belef to be compatible with any parameter taking
  153.    utility, past, present or future. If someone upgrades their compression
  154.    utility, you need merely change your commands on the configuration screen
  155.    (if necessary).
  156.  
  157.    Belef also holds the names, commands and options for 2 compression
  158.    utilities AND allows you to save and load either complete OR
  159.    individual setups ! For example, one setup can be for .ARC and .LZH
  160.    files and another can be for .ZOO and .ZIP files (or any combination
  161.    you like).
  162.  
  163.    While Belef DOES come with a basic setup file, configuring it to your
  164.    OWN needs may require a little more "fine tuning". Take the time to read
  165.    this text file so that you may take FULL advantage of the features, and
  166.    flexibility, of Belef !
  167.  
  168.  
  169.                                    
  170.     1)                             MAIN PANEL
  171.                                    ----------
  172.                                    
  173.     [command] [option] [archive name] [disk name/directory/pathname]
  174.  
  175.  
  176.     The first thing to appear when you run Belef is the Main Panel. This is
  177.     the panel from which you will perform your archiving procedures.
  178.  
  179.     You will note 2 sets of 20 buttons each contained within a darker
  180.     background. The set of 20 buttons on top are the commands and options
  181.     for the first archive utility. The set of 20 buttons on the bottom
  182.     are the commands and options for the second archive utility.
  183.  
  184.  
  185.  a) COMMAND BUTTONS
  186.     ---------------
  187.     These are the first 10 buttons within the first set of buttons (on the
  188.     top of the panel) and the first 10 buttons within the second set of
  189.     buttons (on the bottom half of the panel).
  190.  
  191.     The command buttons are used, as the name implies, to select the
  192.     "command" (or function) that you wish the archive utility to perform. 
  193.  
  194.     The COMMAND buttons are "radio buttons", meaning that you may only select
  195.     one command button at a time. These are like the old car radio buttons
  196.     where the selected button becomes deselected when a new one is chosen
  197.     (anybody remember them ? :-) .
  198.  
  199.     A "command" lets the archive utility know exactly what you wish to do
  200.     with/to an archived file. A command can be something like EXTRACT (the
  201.     archived file) or LIST (the contents of the archived file).
  202.  
  203.     Click on a command button to select it. When you eventually click on
  204.     the execute button, Belef will pass your selected command on to the
  205.     archive utility.
  206.  
  207.     -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-
  208.     The "Command" button in the center of the main panel has NOTHING to
  209.     do with the aforementioned "Command Buttons".
  210.     -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-
  211.  
  212.     =~=~=~=~=~=~=~=~=~=~=
  213.     SEE ALSO: Section 3c
  214.     =~=~=~=~=~=~=~=~=~=~=
  215.  
  216.  b) OPTION BUTTONS
  217.     --------------
  218.     These are the last 10 buttons within the top set of buttons (on the top
  219.     of the panel) and the last 10 buttons within the bottom set of buttons
  220.     (on the bottom of the panel). You may select up to 10 options (buttons)
  221.     at a time. When you eventually click on an execute button, the selected
  222.     options will be sent to the archive utility.
  223.  
  224.     An "option" is used to complement the function of a command. An option
  225.     can be something like INCLUDE FOLDERS (contained in the archived file
  226.     when extracting) or SUPPRESS WARNINGS (which usually warn you if you
  227.     are about to overwrite a file).
  228.  
  229.     An "option" will NOT perform a function all by itself. You must FIRST
  230.     specify and execute a command.
  231.  
  232.  c) EXECUTE BUTTONS
  233.     ---------------
  234.     The BIG button on the top right, and the BIG button below the arrows on
  235.     the right side of the main panel, are the EXECUTE buttons. The default
  236.     configuration which comes with Belef has them labeled as ARC and LZH.
  237.    
  238.     Clicking on the TOP BIG button will execute (run) the compression
  239.     utility assigned to it on the configuration screen. Any commands and/or
  240.     options selected on the top half of the panel will be passed to the
  241.     utility on the TOP right.
  242.  
  243.     Any commands and/or options selected on the bottom half of the panel
  244.     will be passed to the utility (assigned to the bottom utility) when ITS
  245.     button is selected.
  246.  
  247.     -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-
  248.     REMEMBER: Most archive utilities will NOT perform a function when just
  249.               an option is passed on to the utility. You MUST issue a command.
  250.     -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-
  251.  
  252.  d) CONVERT BUTTON
  253.     --------------
  254.     This button takes the commands and options from the top of the panel
  255.     and passes them on to the first compression utility. It then takes
  256.     the commands and options from the bottom of the panel and passes them
  257.     on to the second compression utility.
  258.  
  259.     You can therefore set up the first utility to EXTRACT an .ARC file and
  260.     the second utility to compress the extracted files into an .LZH file.
  261.  
  262.     The procedure will not stop until the file is converted (the process
  263.     complete) or unless you select CANCEL in a fileselector.
  264.  
  265.     NOTE: Holding down the [CONTROL] key while selecting the Convert button
  266.           calls up an alert which allows you to relabel this button as "Chain".
  267.           This was done in the event the term "convert" tended to mislead
  268.           you. This preference is saved to the configuration file.
  269.  
  270.  e) ARROWS
  271.     ------
  272.     Selecting the "UP" arrow calls up a fileselector. It's search mask
  273.     will be set to that of the top big button. In other words, if the
  274.     top big button is ARC, the fileselector will open to *.ARC .
  275.  
  276.     The down arrow repeats this procedure for the button below it.
  277.  
  278.     IDENTIFYING LZH FORMATS
  279.     -----------------------
  280.     This option also allows you to select files for identification. I added
  281.     this so that I could properly identify .LZH files. Most of the older
  282.     .LZH utilities are unable to work with the newer -lh5- format. They
  283.     usually crash, ouch :-( . This option helps to ensure that you are
  284.     using the correct archive utility.
  285.  
  286.     If you DON'T want to identify a file, select CANCEL in the fileselector.
  287.     If you DO wish to identify a file, select that file in the fileselector.
  288.     Belef will then read the first few bytes of that file and display that
  289.     information on the top of the screen.
  290.  
  291.     Belef currently recognizes .LZH (-lh0-,-lh1-,-lh5-), .ARC and .ZOO files.
  292.     CAUTION: It IS possible for Belef to misidentify a file. If you find such
  293.     a file, please let me know.    
  294.  
  295.     The only programs of which I am aware, which currently support -lh5- 
  296.     files (as of 7/27/93), are Thomas Questers !LHARC.TTP v.2.01 or newer
  297.     and Roger Burrows LHA.TTP v.2.01 or newer.
  298.  
  299.  f) EXIT BUTTON
  300.     -----------
  301.     Select this button to quit the program.
  302.  
  303.  g) LOW RESOLUTION SUPPORT
  304.     ----------------------
  305.     Due to the severe size constraints imposed by lower resolutions, only
  306.     the "low resolution main panel" is accessible from within ST/STe/TT
  307.     low resolution. Any "setups" you wish to use IN the lower resolution
  308.     should be configured from within a higher resolution.
  309.  
  310.     o The top 10 buttons to the left are the COMMAND buttons. The 10
  311.       buttons below it are the OPTIONS buttons. SEE: Sections 1a,1b.
  312.  
  313.     o The BIG button on the top right is the EXECUTE button. SEE: Section 1c
  314.  
  315.     o The IDENTIFY button below the big button performs the same function
  316.       as the arrow buttons described in  Section 1e .
  317.  
  318.     o The LEFT and RIGHT arrows below this allow you to scroll between your
  319.       two archiving utilities. Since both utilities will not fit on the same
  320.       screen, the CONVERT option is not available in low resolution.
  321.  
  322.     o The LOAD SET button allows you to load a new Belef .SETup file. The
  323.       file BELEF.SET will still load by default in low resolution.
  324.  
  325.     o The LOAD SIN button allows you to load a new Belef .SINgle setup file.
  326.  
  327.     o The EXIT button quits the program.
  328.  
  329.     o The "Extract With Query" option is not available in low resolution.
  330.  
  331.  
  332.  
  333.     2)                            PREFERENCES
  334.                                   -----------
  335.  
  336.     This is the panel on which you will set up some of your personal (user)
  337.     interface preferences. It may be accessed by clicking on the name "Prefs"
  338.     which appears in the center, and to the left, on the main panel.
  339.  
  340.  
  341.  a) CONFIRMATION PROMPTS
  342.     --------------------
  343.     This enables alerts which ask for confirmation before executing a
  344.     procedure. Clicking within the box to the left of the function name
  345.     will toggle this feature on and off.
  346.  
  347.  b) PAUSE AFTER TOS APPS
  348.     --------------------
  349.     This allows Belef to pause after executing a TOS Application. Most TOS
  350.     APPS just end without allowing you to see what they've just done. You
  351.     can also use this feature as a substitute for a compression utilities
  352.     "hold screen" option. This has the advantage of freeing up an "option"
  353.     slot. Clicking within the box to the left of the function name will 
  354.     toggle this feature on and off.
  355.  
  356.  c) CONFIRM OVERWRITES
  357.     ------------------
  358.     This option warns you if you are about to overwrite an EXISTING file.
  359.     Note that once you execute a compression utility, control is taken
  360.     away from Belef. Belef WILL NOT be able to warn you if the compression
  361.     utility is about to overwrite a file. Clicking within the box to the
  362.     left of the function name will toggle this feature on and off.
  363.  
  364.  d) CONFIRM DELETES
  365.     ---------------
  366.     This option warns you if you are about to delete a file. Clicking within
  367.     the box to the left of the function name will toggle this feature on
  368.     and off.
  369.  
  370.  e) MOUSE SNAPPING
  371.     --------------
  372.     This option snaps the mouse cursor back to a selected button, after that
  373.     buttons function is exited, ie: a fileselector, alert or panel button.
  374.     It also "centers" the mouse over panels and GEM alert boxes when they
  375.     appear. Clicking within the box to the left of the function name will 
  376.     toggle this feature on and off.
  377.  
  378.     This option also enables the mouse wrapping feature. When the mouse
  379.     cursor reaches the edge of the screen, it will wrap around to the
  380.     opposite side. I added this because Warp 9's wrap feature tends to turn
  381.     horizontal wrap off when a right mouse button is clicked. This feature
  382.     IS compatible with Warp 9's wrap feature, so both may be kept on at
  383.     the same time.
  384.  
  385.     The wrap feature within Belef will also NOT work when a GEM object
  386.     appears (ie: an alert or fileselector). This allows it to co-exist
  387.     with memory resident mouse wrappers (ie: Warp 9).
  388.  
  389.     =~=~=~=~=~=~=~=~=~=~=
  390.     SEE ALSO: Section 12
  391.     =~=~=~=~=~=~=~=~=~=~=
  392.  
  393.     UNCLEMOUSE SUPPORT
  394.     ------------------
  395.     Belef supports the UncleMouse .CURsor file format. If a file named
  396.     BELEF.CUR is found in the SAME directory as BELEF.PRG, a custom mouse
  397.     cursor (created with UncleMouse V.1.0a or newer) will be loaded !
  398.  
  399.  f) SELECT BUTTONS
  400.     --------------
  401.     This option allows you to select MOST functions with either the left,
  402.     right or both mouse buttons. The CONFIGURE and COMMAND screens require
  403.     a special selection to adapt to this function. Please refer to the
  404.     the CONFIGURE or COMMAND section to find out how to set them
  405.  
  406.     -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-
  407.     NOTE: If the "right mouse" function is selected and you wish to change
  408.           it to "left mouse", you will have to select the "left mouse" box
  409.     with the right mouse button (since you are currently in right mouse mode).
  410.     -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-
  411.  
  412.     EXIT
  413.     ----
  414.     Click in the box in the upper left hand corner of the panel to exit.
  415.  
  416.  
  417.  
  418.     3)                             CONFIGURE
  419.                                    ---------
  420.  
  421.     This is the screen which is used to configure the buttons on the main
  422.     panel and to set up archive utility locations. This screen automatically
  423.     opens to the FIRST archive utility. It may be called by clicking on the
  424.     name "Configure" which appears in the middle of the main panel (just
  425.     below the top 20 buttons and to the right of name "Prefs").
  426.  
  427.     To allow this panel to adapt to your "mouse prefs", you must HOLD DOWN
  428.     the [CONTROL] key when selecting the "configure" button on the main
  429.     panel. An alert will appear which will allow you to select either the
  430.     NEW "form_do" routine (which allows this panel to adapt to your
  431.     "mouse prefs") or the OLD "form_do" routine (which returns the panels
  432.     functions to the standard GEM left-mouse" mode). A check-mark will
  433.     appear to the left of the name when it is in the NEW mode. This
  434.     setting is also saved to BELEF.CNF.
  435.  
  436.     =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
  437.     SEE ALSO: Section 13e: NEW FORM_DO
  438.     =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
  439.  
  440.  a) UTILITY
  441.     -------
  442.     This is the line on which you will enter the FULL path and NAME of the
  443.     archive utility. This is the program which will be executed when you
  444.     select the EXECUTE button on the main panel.
  445.  
  446.     ie: UTILITY: F:\ARCSTUFF\ARC.TTP
  447.  
  448.     This information may be entered manually or by selecting the PATHS button.
  449.     The PATHS button calls up an alert which, in turn, allows you to call a
  450.     fileselector for finding the archive utility.
  451.  
  452.     =~=~=~=~=~=~=~=~=~=~=
  453.     SEE ALSO: Section 3k
  454.     =~=~=~=~=~=~=~=~=~=~=
  455.  
  456.  b) COMMANDS
  457.     --------
  458.     To the right of the letters CMND: are the lines on which you will
  459.     enter the "COMMANDS" which are recognized by the compression utility.
  460.  
  461.     For example, most compression utilities recognize  x  as the command
  462.     for extract.
  463.  
  464.     ie: CMND: x
  465.  
  466.     -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-
  467.     PLEASE refer to the compression utilities documentation for a full list
  468.     of available commands and options FOR that utility.
  469.     -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-
  470.  
  471.  c) CONTROL CODE COMMANDS
  472.     ---------------------
  473.     Belef now incorporates special control characters to call up certain
  474.     options ! These codes are entered IMMEDIATELY after a COMMAND on the
  475.     CONFIGURE screen. To enter them you need to HOLD DOWN the CONTROL key
  476.     while typing in the corresponding character.
  477.  
  478.     For purposes of illustration (since your printer may not like control
  479.     characters),  <c>  represents the control character. 
  480.  
  481.  
  482.     CONTROL-E  -  This "code" tells Belef to present you with an alert box
  483.                   which allows you to either extract ALL, TO FOLDER, W/QUERY
  484.                   or CANCEL. If you do NOT enter this code, the alert box
  485.                   will NOT appear. This allows non-standard commands to be
  486.                   interpreted as "extract" commands (as well as standard).
  487.  
  488.                   ie: CMND: x<c>  (The  <c>  represents control-e).
  489.  
  490.     CONTROL-I  -  Tells Belef that you wish to use file Indirection. This
  491.                   code consists of 2 characters. The first character is
  492.                   the "indirection" code used by the utility. The second
  493.                   character is the control code. Both of these codes
  494.                   FOLLOW the utilities command.
  495.  
  496.                   ARC602STs "indirection code" is the "at",  @  , symbol.
  497.                   !LHARC.TTPs "indirection code" is the "and", & , symbol.
  498.  
  499.                   ie: CMND: a@<c>     <-- For ARC602ST.
  500.                   ie: CMND: a&<c>     <-- For Questers !LHARC.TTP.
  501.  
  502.                   The control code instructs Belef to place the "indirection"
  503.                   code just before the "indirection" file. This "indirection"
  504.                   code instructs the archive utility to read the file instead
  505.                   of "add" it.
  506.  
  507.                   ARC_IND.SIN and LZH_IND.SIN are sample (single) setups.
  508.                   INDIRECT.TXT is a sample "indirection" file.
  509.  
  510.                   =~=~=~=~=~=~=~=~=~=~=
  511.                   SEE ALSO: Section 14a
  512.                   =~=~=~=~=~=~=~=~=~=~=
  513.  
  514.  
  515.     CONTROL-L  -  Tells Belef to execute the selected CMND as soon as a file
  516.                   has been selected. The alert box and second fileselector
  517.                   will NOT appear. This is useful for files you wish, say,
  518.                   "listed" or "tested".
  519.  
  520.                   ie: CMND: l<c>
  521.                   ie: CMND: t<c>
  522.  
  523.     CONTROL-Q  -  Tells Belef to "scan" the archive file and then take you
  524.                   immediately to the Query screen. This option can be used
  525.                   for commands like "delete file" or "display file".
  526.  
  527.                   ie: CMND: d<c>
  528.  
  529.                   Select the file you wish "deleted" or "displayed" from the
  530.                   "query" screen and click on the "extract" button to act
  531.                   upon the selected file.
  532.  
  533.                   =~=~=~=~=~=~=~=~=~=~=
  534.                   SEE ALSO: Section 14b
  535.                   =~=~=~=~=~=~=~=~=~=~=
  536.  
  537.  
  538.     CONTROL-R  -  Tells Belef to Redirect ALL "options" to the end of an
  539.                   argument. This is included so that you may use ARC.TTPs
  540.                   "print" command. This code MUST be entered AFTER an
  541.                   "OPTION".
  542.  
  543.                   ie: CMND: p<c>       <-(THIS  <c>  represents control-q)  
  544.                       Name: PRINT
  545.                       OPTN: >prn<c>      (The  <c>  represents control-r)
  546.                       Name: TO PRINTER
  547.                                           
  548.  
  549.                   The <control-q> COMMAND takes you to the "query" screen.
  550.                   Once there, select the file you wish "redirected" and
  551.                   click on the "extract" button.
  552.  
  553.                   This is also referred to as "Copy To Standard Output".
  554.                   The final argument would then look like...
  555.  
  556.                   p myfile.arc myfile.txt >prn
  557.  
  558.                   The output of the file "myfile.txt" is, in this example,
  559.                   redirected to a printer.
  560.  
  561.                   =~=~=~=~=~=~=~=~=~=~=
  562.                   SEE ALSO: Section 14c
  563.                   =~=~=~=~=~=~=~=~=~=~=
  564.  
  565.  
  566.     The Control Codes ONLY NEED to be entered on the CONFIGURATION screen.
  567.     If you do not want the code "option", do not enter the code. Belef will
  568.     NOT pass it's control codes on to the archive utility.
  569.  
  570.     WHY AND WHEN
  571.     ------------
  572.     The reason for the control codes is that many programmers don't use the
  573.     standard "commands" for executing instructions. For example, some may use
  574.     j  or  t  to extract instead of  e  or  x  . Some may use  k  or  %
  575.     to list instead of  l  or  v  . The control codes allow you to tell Belef
  576.     what function a command performs.
  577.  
  578.     ie: If someone uses  t  as an extract command, enter  CMND: t<c>  (where
  579.         <c>  is control-e) to tell Belef that this is an extract command
  580.         (and that you DO wish the second fileselector and alert to appear).
  581.  
  582.     ie: If someone uses  %  as a list command, enter  CMND: %<c> (where <c>
  583.         is control-l) to tell Belef that this is a list command ( and that
  584.         the second fileselector and alert are UNNECESSARY).
  585.  
  586.     ie: If someone uses  )  as a "test" command, enter CMND: )<c> (where <c>
  587.         is control-l) to tell Belef that this is a "test" command (and that
  588.         the second fileselector and alert are UNNECESSARY).
  589.  
  590.  
  591.  d) NAMES
  592.     -----
  593.     To the right of the name "Name:" are the lines on which you will enter
  594.     the "name" of the button. The "name" corresponds to the CMND: button
  595.     directly ABOVE it. The "name" you enter will appear on the appropriate
  596.     button on the main panel.
  597.  
  598.     ie:  CMND: x           <-- The command.
  599.          Name: EXTRACT     <-- The name of the button on the main panel.
  600.  
  601.  e) OPTIONS
  602.     -------
  603.     To the right of the letters "OPTN:" are the lines on which you will
  604.     enter the "OPTIONS" which are recognized by the compression utility.
  605.     Again, enter the name of the option "button" on the line directly
  606.     below the "OPTN:" line. The "name" will appear on the appropriate button
  607.     on the main panel.
  608.  
  609.     For example, most compression utilities recognize  z  as the "option"
  610.     to include full directories (or folders).
  611.  
  612.     ie:   OPTN:  z           <-- The option.
  613.           Name: W/FOLDERS    <-- The name of the "option" button.
  614.  
  615.  f) ENCRYPTION
  616.     ----------
  617.     If you are using ARC.TTP, you can enter the option  g  (encrypt/decrypt)
  618.     and then place the password directly after it on the option line.
  619.  
  620.     ie:   OPTN: gcarl        <-- The option plus the password  carl  .
  621.           Name: PASSWORD     <-- The name of the "option" button.
  622.  
  623.     ARC.TTP expects the password to be the LAST option, so be certain to
  624.     set up your option buttons accordingly. Please refer to your compression
  625.     utilities manual for a more detailed explanation (and guidelines).
  626.     By the way, ARC_PW.SIN is an example password setup for ARC.TTP .
  627.  
  628.     -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-
  629.     NOTE: Please refer to your compression utilities documentation if you
  630.           are confused as to the difference between "commands" and 
  631.           "options".
  632.     -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-
  633.  
  634.  g) TEMPORARY WORK DIRECTORY
  635.     ------------------------
  636.     This is the directory in which all affected files will be placed.
  637.     For example, if this line is  J:\*.* , any files which are extracted
  638.     will be placed on drive  J  .  Any files which are being added to an
  639.     archive will be taken from this directory.
  640.  
  641.     =~=~=~=~=~=~=~=~=~=~=
  642.     SEE ALSO: Section 13b
  643.     =~=~=~=~=~=~=~=~=~=~=
  644.  
  645.     Because of peculiarities within various compression utilities, it
  646.     is suggested that you make this directory an empty drive or a RAM
  647.     disk when CONVERTING files.
  648.  
  649.     =~=~=~=~=~=~=~=~=~=
  650.     SEE ALSO: Section 7
  651.     =~=~=~=~=~=~=~=~=~=
  652.  
  653.  h) SCROLLING SETUPS / BUTTONS
  654.     --------------------------
  655.     On the bottom left of the configuration panel is a box containing 2
  656.     arrows. These arrows are used to scroll between your utility setups.
  657.     The "number" in the box will indicate your current setup number.
  658.     Scrolling a setup will "set" the previous setup in memory.
  659.  
  660.     The "commands" and "options" for setup number ONE will appear on the
  661.     TOP half of the MAIN PANEL. The "commands" and "options" for setup
  662.     number TWO will appear on the BOTTOM half of the MAIN PANEL.
  663.  
  664.     To the right of this is the word BUTTON. Enter the archive files
  665.     "mask" on this line. ie: If you are using ARC.TTP, enter the letters
  666.     ARC . If you are using LHARC.TTP, enter LZH on this line.
  667.  
  668.     This sets the "masks" for the fileselectors and buttons.
  669.  
  670.  i) LOAD
  671.     ----
  672.     When selected, an alert will appear which will allow you to LOAD a
  673.     "setup" ,"single" or "configuration" file.
  674.  
  675.     DEFAULT FILES
  676.     -------------
  677.     When Belef is first run it looks for the following files. The information
  678.     within these files will be loaded automatically...
  679.  
  680.     BELEF.SET  -  A default SETup.
  681.     BELEF.CNF  -  Belefs configuration file.
  682.     BELEF.CUR  -  Belefs mouse cursor shape.
  683.  
  684.     These files MUST be placed within the SAME directory as BELEF.PRG in order
  685.     for BELEF.PRG to find and load them.
  686.  
  687.  j) SAVE
  688.     ----
  689.     When selected, an alert will appear which will allow you to SAVE a
  690.     "setup", "single" or "configuration" file.
  691.  
  692.     .SET  <- This type of file contains the 2 utility setups.
  693.     .SIN  <- This type of file saves a "single" utility setup (the one
  694.              currently displayed on the screen).
  695.     .CNF  <- This file contains Belefs current configuration (prefs,
  696.              all fileselector paths, button selections, etc...).
  697.  
  698.  k) PATHS
  699.     -----
  700.     This button calls up a fileselector which allows you to select a UTILITY
  701.     or TEMP path.
  702.  
  703.     =~=~=~=~=~=~=~=~=~=~=~=~=
  704.     SEE ALSO: Section 3a, 13b
  705.     =~=~=~=~=~=~=~=~=~=~=~=~=
  706.  
  707.  l) OKAY
  708.     ----
  709.     This button sets the current configuration in memory and returns you to
  710.     the main panel.
  711.  
  712.  m) CANCEL
  713.     ------
  714.     This button exits the configuration panel WITHOUT registering ANY
  715.     changes. Remember, scrolling will "set" an entry in memory. Only
  716.     information which is entered manually, and is NOT scrolled, will
  717.     be ignored.
  718.  
  719.  
  720.  
  721.     4)                              COMMAND
  722.                                     -------
  723.  
  724.     This panel is the equivalent of 2 parameter taking panels (the type of
  725.     panel which appears when you double-click on a TTP program from the GEM   
  726.     desktop). It may be accessed by clicking on the name "Command" which
  727.     appears in the center of the main panel (to the right of the name
  728.     configure).
  729.  
  730.     To allow this panel to adapt to your "mouse prefs", you must HOLD DOWN
  731.     the [CONTROL] key when selecting the "command" button on the main
  732.     panel. An alert will appear which will allow you to select either the
  733.     NEW "form_do" routine (which allows this panel to adapt to your
  734.     "mouse prefs") or the OLD "form_do" routine (which returns the panels
  735.     functions to the standard GEM left-mouse" mode). A check-mark will
  736.     appear to the left of the name when it is in the NEW mode. This
  737.     setting is also saved to BELEF.CNF.
  738.  
  739.     =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
  740.     SEE ALSO: Section 13e: NEW FORM_DO
  741.     =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
  742.  
  743.  
  744.  a) BUTTONS
  745.     -------
  746.     On the left side of the panel are buttons representing your compression
  747.     utilities (2 on top, 2 in the middle). Any parameters specified on the
  748.     top half of this panel will be sent to the utility selected in the top
  749.     set of buttons.
  750.  
  751.     Any parameters specified on the bottom half of this panel will be sent
  752.     to the utility selected in the bottom set of buttons.
  753.  
  754.     The archive utilities "mask" MUST be entered on the "configure" screen
  755.     along with the utilities path and name in order for the masks to appear
  756.     within the buttons and for Belef to find and execute the utility.
  757.  
  758.     The TEMP path is used by BOTH utilities.
  759.  
  760.     =~=~=~=~=~=~=~=~=~=~=
  761.     SEE ALSO: Section 13b
  762.     =~=~=~=~=~=~=~=~=~=~=
  763.  
  764.     -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-
  765.     NOTE: Most compression utilities interpret "no command" as an instruction
  766.           to list their options. If ALL lines are blank, clicking on EXECUTE
  767.     will run the selected compression utility. You should get a list of
  768.     commands and options.
  769.     -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-
  770.  
  771.  b) COMMAND LINE
  772.     ------------
  773.     These are the lines on which you will specify the COMMANDS and OPTIONS
  774.     to be sent to the selected compression utility. A command typically
  775.     follows the form...
  776.  
  777.     {COMMAND} {OPTIONS} {archive name} {disk name/directory/pathname}
  778.  
  779.  c) FILE
  780.     ----
  781.     These are the lines on which you will enter the FULL path and name of
  782.     the archived file to be affected.
  783.  
  784.     ie: F:\FOLDER\MYFILE.ARC  =  {archive name}
  785.  
  786.     The top files PATH and NAME will be sent to the top selected utility.
  787.     The bottom "files" PATH and NAME will be sent to the bottom selected
  788.     utility.
  789.  
  790.  d) TEMP
  791.     ----
  792.     This is the directory in which any affected files (such as extracted
  793.     files) will be placed. Think of it as a temporary work directory.
  794.  
  795.     ie: J:\*.*  =  {disk name/directory/pathname}
  796.  
  797.     =~=~=~=~=~=~=~=~=~=
  798.     SEE ALSO: Section 7
  799.     =~=~=~=~=~=~=~=~=~=
  800.  
  801.  e) EXECUTE
  802.     -------
  803.     This button takes ALL information on the FIRST command lines, ALL 
  804.     information on the FIRST FILE line, ALL information on the TEMP line,
  805.     and passes it on to the utility represented by the TOP selected button.
  806.  
  807.     ie:     [ARC]
  808.          Command Line: x
  809.                  File: F:\MYFILE.ARC
  810.  
  811.                  TEMP: J:\*.*
  812.  
  813.     If the ARC button is selected, the following command is sent to the
  814.     selected compression utility... 
  815.  
  816.          x F:\MYFILE.ARC J:\*.*
  817.  
  818.  f) CONVERT
  819.     -------
  820.     This button "executes" the instructions on the top half of the panel and
  821.     then "executes" the instructions on the bottom half of the panel, without
  822.     stopping.
  823.  
  824.     This can be used if you want to EXTRACT say, an .ARC file, and then
  825.     recompress it into an .LZH file.
  826.  
  827.     ie:    [ARC]
  828.         Command Line: x
  829.                 File: F:\MYFILE.ARC
  830.  
  831.                [LZH]
  832.         Command Line: m
  833.                 File: F:\MYFILE.LZH
  834.  
  835.         TEMP: J:\*.*
  836.  
  837.     Belef instructs ARC to eXtract  MYFILE.ARC  to  J:\*.*  . Belef then
  838.     tells LZH to Move ALL files found on J:\*.* into the file MYFILE.LZH .
  839.  
  840.     =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
  841.     SEE ALSO: Section 7
  842.     SEE ALSO: Section 1d) CONVERT BUTTON
  843.     =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
  844.  
  845.  g) PATHS
  846.     -----
  847.     This button calls up a fileselector from which you may select either
  848.     the "files" you wish to affect or the TEMP path.
  849.  
  850.     =~=~=~=~=~=~=~=~=~=~=
  851.     SEE ALSO: Section 13b
  852.     =~=~=~=~=~=~=~=~=~=~=
  853.  
  854.  h) EXIT
  855.     ----
  856.     This button returns you to the main panel.
  857.  
  858.     -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-
  859.  
  860.     NOTE: You can also use the TOP "command lines" alone if you so wish. All
  861.           other lines should be BLANK. You need merely enter information in 
  862.     the same way that you would after clicking on a TTP program from the
  863.     desktop. Clicking on Execute would execute the entire command line.
  864.  
  865.     ie: Command Line: xz F:\MYFILE.ARC J:\*.*
  866.  
  867.     -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-
  868.  
  869.  
  870.  
  871.     5)                                FILE
  872.                                       ----
  873.  
  874.     Selecting the "file" button from the main panel calls up "File Options" 
  875.     panel.
  876.  
  877.  
  878.  a) COPY/MOVE FILE(s)
  879.     -----------------
  880.     This button (box) allows you to specify files to copy. Holding down the
  881.     [CONTROL] key while selecting this option temporarily toggles this
  882.     function to "move files". Source files will only be deleted IF a
  883.     successful copy HAS been made ! Fileselector prompts appear on top of
  884.     the screen to help guide you through the process.
  885.  
  886.     You may also copy or move files using the wildcards "*" asterisk and
  887.     "?" question mark. This allows you to copy or move more than one file
  888.     at a time.
  889.  
  890.     EXAMPLE:   Source Fileselector: C:\*.*
  891.              Destination FSelector: J:\*.*
  892.  
  893.     This example copies all FILES found in the root directory of drive C
  894.     to the root directory of drive J .
  895.  
  896.     EXAMPLE:   Source Fileselector: C:\NEODESK3\NEODESK?.IN?
  897.              Destination FSelector: J:\FOLDER\*.*
  898.  
  899.     This example copies files like NEODESKM.INF and NEODESKL.INX from
  900.     within the NEODESK3 folder into the folder found on drive J .
  901.  
  902.     EXAMPLE:   Source Fileselector: G:\*.PI?
  903.              Destination FSelector: J:\*.*
  904.  
  905.     This example copies any file with endings such as PI1, PI2 or PI3
  906.     (ie: DESKTOP.PI1) from the root directory of drive G to the root
  907.     directory of drive J .
  908.  
  909.     ---------------------
  910.     SEE ALSO: Section 13i   for further information on the implementation
  911.     ---------------------   of "wildcards".
  912.  
  913.  
  914.  b) DELETE FILE(s)
  915.     --------------
  916.     This button (box) allows you to specify files to delete. Here again,
  917.     fileselector prompts appear on the top of the screen to help guide you
  918.     through the process.
  919.  
  920.     Multiple files may also be deleted using the wildcard method described
  921.     in the previous section. Both wildcards "*" and "?" are supported.
  922.  
  923.     EXAMPLE:  Source Fileselector: C:\*.INF
  924.  
  925.     This example deletes all FILES ending in INF (ie: DESKTOP.INF) from
  926.     the root directory of drive C .
  927.  
  928.     EXAMPLE:  Source Fileselector: C:\NEODESK3\NEODESK?.IN?
  929.  
  930.     This example deletes files like NEODESKM.INF and NEODESK2.INX from
  931.     the NEODESK3 folder on drive C .
  932.  
  933.     ---------------------
  934.     SEE ALSO: Section 13i   for further information on the implementation
  935.     ---------------------   of "wildcards".
  936.  
  937.  
  938.  c) RENAME FILE
  939.     -----------
  940.     This button (box) allows you to specify files to rename. Fileselector
  941.     prompts will guide you on your way.
  942.  
  943.  d) DISK SPACE
  944.     ----------
  945.     This button (box) calls up a fileselector. Select a drive and click on
  946.     OKAY in the fileselector. The program will then tell you how much free
  947.     "disk space" remains on the selected disk/drive.
  948.  
  949.     -==================-
  950.     SEE ALSO: Section 13j
  951.     -===================-
  952.  
  953.  e) CREATE FOLDER
  954.     -------------
  955.     This button (box) allows you to create NEW folders. A fileselector
  956.     prompt will guide you on your way.
  957.  
  958.  f) DELETE FOLDER
  959.     -------------
  960.     This button (box) allows you to delete folders. A fileselector prompt
  961.     will guide you on your way.
  962.  
  963.     If ANY paths within the program are set to open to a folder which has
  964.     just been deleted, those paths will be reset to the root directory in
  965.     which the folder used to exist.
  966.  
  967.  g) RENAME FOLDER
  968.     -------------
  969.     If you have TOS 1.4 or newer, this button (box) allows you to rename
  970.     folders. Fileselector prompts will guide you on your way.
  971.  
  972.     If ANY paths within the program are set to open to a folder which has
  973.     just been renamed, those paths will be reset to the root directory of
  974.     the newly renamed folder.
  975.  
  976.  h) EXIT
  977.     ----
  978.     Click in the box in the upper left hand corner to exit this panel.
  979.  
  980.     -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-
  981.     NOTE: If you have a version of TOS with the mouse-doubling bug and are
  982.           using the mouse "snap" feature, you MAY wish to select options with
  983.     the RIGHT mouse button. This will keep TOS from clicking on say, OKAY, in
  984.     the fileselector before you get a chance to do anything.
  985.     -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-
  986.  
  987.  
  988.  
  989.     6)                         EXTRACTION OPTIONS
  990.                                ------------------
  991.  
  992.     When Belef receives a specific "extract" command (refer to section 3)
  993.     it will present you with an alert box. This box wlll NOT appear if you
  994.     are extracting with wildcards. This is because most archive utilities
  995.     employ their own wildcard extraction options.
  996.  
  997.     -===================-
  998.     SEE ALSO: Section 13g
  999.     -===================-
  1000.  
  1001.  a) ALL
  1002.     ---
  1003.     This button will execute ALL of your "on screen" commands immediately.
  1004.  
  1005.  b) FOLDER
  1006.     ------
  1007.     This button will first create a folder with the same name as the archive
  1008.     file (minus the file mask). It will then extract all of your archive files
  1009.     INTO that folder.
  1010.  
  1011.  c) QUERY
  1012.     -----
  1013.     #######################################################################
  1014.     DO NOT select this button unless you are extracting an .ARC file or an
  1015.     .LZH file.
  1016.     #######################################################################
  1017.  
  1018.     This option will scan the archive file and list the file names on a 
  1019.     seperate screen. You can then select as many files as you wish to extract
  1020.     and click on the EXTRACT button. All selected files on the current screen
  1021.     will then be extracted from that archive.
  1022.  
  1023.     If there are more than 81 files within the archived file, the "Next"
  1024.     button, which is usually disabled, will become selectable. Selecting the
  1025.     "Next" button lists up to 81 more files !
  1026.  
  1027.     -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-
  1028.     NOTE: You can abort the extractions by holding down the <CONTROL> key.
  1029.           It will ONLY take affect AFTER control has been returned to Belef.
  1030.     In other words, you can't abort a file currently being extracted. 
  1031.     Before Belef starts on the next file it checks for the <CONTROL> key.
  1032.     -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-
  1033.  
  1034.  d) CANCEL
  1035.     ------
  1036.     This button aborts the extraction process.
  1037.  
  1038.  
  1039.  
  1040.     7)                     SELECTING TEMP DIRECTORIES
  1041.                            --------------------------
  1042.  
  1043.     One of the BIGGEST problems I've encountered was the variety of ways in
  1044.     which compression utilities handle folders. This section mainly covers
  1045.     possible solutions of moving folders into archives. If you only use
  1046.     your compression utility to extract files, you probably don't need to
  1047.     read this section.
  1048.  
  1049.     Some utilities won't recognize a folder unless you "open" the folder.
  1050.     Some utilities interpret folders as files when they are in the root
  1051.     directory and some don't. Some utilities interpret the ENTIRE path
  1052.     name as part of the path, even if you open a folder and tell it to
  1053.     ONLY include the contents in the current directory. I COULD go on,
  1054.     but I think you get the idea !
  1055.  
  1056.     The EASIEST solution I've found to this was to specify "include
  1057.     folders" in the command and to specify a drive in which ONLY the
  1058.     folders/files which you wish to be affected, are contained.
  1059.  
  1060.     -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-
  1061.     This is NOT a law and you are free to manipulate the files in any
  1062.     way which works best for you.
  1063.     -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-
  1064.  
  1065.     ANYWAY...when converting, I like to eXtract ALL files to an EMPTY
  1066.     RAM disk, and then instruct the second compression utility to take
  1067.     ALL folders and files it finds ON that RAM disk and move them into
  1068.     the new archive.
  1069.  
  1070.     ie: mz MYFILE.LZH J:\*.*
  1071.  
  1072.     For me, this solves the problem of trying to remember which utilities
  1073.     do what with folders. It also makes the conversion MUCH faster !
  1074.  
  1075.     NOTE that if you specify "include folders" and the archive file doesn't
  1076.          contain any folders, the compression utility will just ignore it.
  1077.          In other words, it won't hurt anything.
  1078.  
  1079.  
  1080.     8)                              CREDITS
  1081.                                     -------
  1082.  
  1083.     Belef (C) Carl J. Hafner
  1084.     Thanks, always, to Larry D. Duke for his plethora of GFA knowledge
  1085.     NeoDesk (C)Gribnif Software
  1086.     GEM is (was?) a trademark of Digital Research
  1087.     LGSELECT, BUTTNFIX (C)Charles F. Johnson
  1088.     SilkMouse (C)Mark Slagell
  1089.  
  1090.  
  1091.  
  1092.     9)                            DISTRIBUTION
  1093.                                   ------------
  1094.  
  1095.     You are free to copy and distribute the BELEF DEMO as long as the files 
  1096.  
  1097.     BELEFDEM.PRG   -   The program
  1098.     BELEF   .CUR   -   Belef mouse CURsor file
  1099.     BELEF   .SET   -   Sample SETup file
  1100.     TXTFILES.LZH   -   Belef text files
  1101.     SINFILES.LZH   -   Sample .SIN files
  1102.     INDFILES.LZH   -   Sample .IND files
  1103.     READ_ME .1ST   -   READ ME text file
  1104.     READ_ME .2ND   -   Listing of extra archived files
  1105.     OTHERTTL.LZH   -   Latest versions, update/registration policies
  1106.  
  1107.     are included, are NOT modified in ANY way and NO FEE of ANY type is
  1108.     incurred upon the recipient for the files _themselves_.
  1109.  
  1110.     You are also free to create and distribute your own Belef .SET and
  1111.     .SIN files as long as they are NOT included along with the original
  1112.     Belef files and NO FEE of ANY type is incurred upon the recipient
  1113.     for the files _themselves_. You ARE free to recoup any fees
  1114.     which represent a financial expenditure on your part (cost of disk,
  1115.     postage). Please refer all recipients to this section of this text
  1116.     file if you feel further explanation is required.
  1117.  
  1118.  
  1119.  
  1120.    10)                            REGISTRATION
  1121.                                   ------------
  1122.  
  1123.     As a REGISTERED user you are required to ensure that NO copies of your
  1124.     licensed version are distributed beyond your own home (or work
  1125.     environment). Making copies of your LICENSED version for ANYONE
  1126.     other than your self or immediate family members will result in the
  1127.     instant revocation of ANY and ALL registrations you may have made with
  1128.     the author. You will NOT receive ANY future support and will NOT
  1129.     be eligible to register ANY future versions of ANY program by the
  1130.     author.
  1131.  
  1132.     By sending in your registration form you are stating that you agree
  1133.     completely with these terms.
  1134.  
  1135.     The suggested registration fee for BELEF is only $15.00 (fifteen
  1136.     U.S. Dollars) plus $3.50 (U.S. & Canada - $4.50 other) for
  1137.     materials, shipping and handling.
  1138.  
  1139.     If you cannot obtain U.S. funds than please feel free to contact me
  1140.     with alternate proposals. All inquiries are welcome.
  1141.  
  1142.      Send all registrations to...
  1143.  
  1144.      Carl J. Hafner
  1145.      RR 2, Box 184C
  1146.      Hawley, PA. 18428
  1147.                 U.S.A.
  1148.      ATTN: Belef
  1149.  
  1150.     Please feel free to include any suggestions for new features or any
  1151.     bugs you may have found.
  1152.  
  1153.  
  1154.  
  1155.     11)                         VERSION HISTORY   
  1156.                                 ---------------
  1157.  
  1158.         2.03d -   Swapped menubar & copyright buttons to allow easier access
  1159.                   to Gribnif Software's GENEVA.
  1160.         2.03c -   Added custom indirection. Special "shift" keys now
  1161.                   register even if you've forgotten to turn off the
  1162.                   CAPSLOCK.
  1163.         2.03b -   Added x/y/w/h mouse wrap to mouse snap feature.
  1164.         2.03a -   Extended timer event to prevent extra clicks over
  1165.                   GEM objects.
  1166.         2.03  -   FSEL headers take names from command buttons, added
  1167.                   confirm deletes preference. Added wildcard copies, moves
  1168.                   and deletes. Added limited low resolution support.
  1169.                   Aesthetic enhancements...
  1170.         2.02d -   Now deletes folders with contents.
  1171.         2.02c -   Aesthetic enhancements, on screen help.
  1172.         2.02b -   A few aesthetic enhancements.
  1173.         2.02a -   Added new form_do routine for configure and command
  1174.                   screens.
  1175.         2.02  -   Added more mouse snaps. Special exit buttons can be
  1176.                   cancelled by moving the mouse off the button and then
  1177.                   releasing it. Cancel now works properly in second
  1178.                   "rename" fileselectors. More paths memorized. Added
  1179.                   control codes for commands. Expanded Query screen
  1180.                   to hold 162 files. Now uses system colours.
  1181.         2.01   -  Added Extract W/Query option for .ARC and .LZH
  1182.                   files. Extended "option" line to 10 characters
  1183.                   so that longer passwords may be used. Improved
  1184.                   .ZOO compatibility. Expanded "folder" alert.
  1185.         2.0a   -  Fileselectors now adapt to ALL path changes.
  1186.                   Adjusted "Configure" mouse snap. Added abort
  1187.                   option to folder alert. Aborting aborts the
  1188.                   entire extraction (not just folder create).
  1189.         2.0    -  Completely new interface. File Options added.
  1190.                   Expanded preferences. Re-re-wrote text file.
  1191.                   SETup and SINgle files added. Improved memory
  1192.                   allocation.
  1193.         1.5    -  Aesthetic graphical enhancements. Improved error
  1194.                   routines. Merged .RSC file. Added .CUR file support.
  1195.                   Rewrote text file. Expanded .DAT file contents.
  1196.                   Generally made it ALOT easier to use. Also fixed
  1197.                   a minor bug WHICH THE COMPILER MISSED ! (undefined
  1198.                   label). TT support.
  1199.         1.0     - Original version.
  1200.  
  1201.  
  1202.  
  1203.    12)                           TROUBLESHOOTING
  1204.                                  ---------------
  1205.  
  1206.     MEMORY ALLOCATION
  1207.     -----------------
  1208.     Belef uses a MALLOC command for certain procedures. If you have a version
  1209.     of TOS with the MALLOC bug (ie: 1.06) you MAY need to use either 
  1210.     POOLFIX3.PRG or POOLFIX4.PRG . I understand that POOLFX92 (I think
  1211.     that's the name) creates more problems than it solves.
  1212.  
  1213.     .ZOO COMPATIBILITY
  1214.     ------------------
  1215.     In the event you are using a utility which does not support extraction
  1216.     redirection, you can do the following. When the second fileselector
  1217.     appears, select CANCEL. This will enable an alert which will allow you
  1218.     to either proceed WITHOUT a "temp path" or abort the entire procedure.
  1219.  
  1220.     If you are using Rahul Dhesi's ZOO.TTP v.2.1, select CANCEL and then
  1221.     CONTINUE. This will make ZOO.TTP happy by allowing IT to select a
  1222.     "temp path".
  1223.  
  1224.     MOUSE SNAPPING
  1225.     --------------
  1226.     If you have a version of TOS which has the "mouse-doubling bug", snapping
  1227.     the mouse onto a button may cause that button to become selected. If this
  1228.     is a persistent problem you can either turn the snapping feature off, use
  1229.     a keyboard equivalent on the problem button or think about using Charles
  1230.     F. Johnson's BUTTNFIX.ACC . I HAVE made allowances for it, so hopefully
  1231.     you'll never see it.
  1232.  
  1233.     The mouse snapping feature does NOT get along with SilkMouse and LGSELECT
  1234.     if they are both in use at the same time. The program will freeze right 
  1235.     after the mouse is snapped. The only solutions are to either turn the
  1236.     snapping feature OFF, or to remove either SilkMouse OR LGSELECT from
  1237.     memory. I'm using COMPLETELY legal methods to "snap" the mouse, so it
  1238.     seems the problem is elsewhere...!-)
  1239.  
  1240.  
  1241.  
  1242.    13)                             OTHER STUFF
  1243.                                    -----------
  1244.  
  1245.  a) FILESELECTOR MESSAGES
  1246.     ---------------------
  1247.     Whenever a fileselector is called, a brief message appears at the top of
  1248.     screen. This message is designed to remind you of the procedure taking
  1249.     place. If you have TOS 1.4 or newer, the message will also appear within
  1250.     the fileselector.
  1251.  
  1252.  b) FILESELECTOR PATHS
  1253.     ------------------
  1254.     Belef will memorize the fileselector paths used when working with
  1255.     archived files and save them to BELEF.CNF . Additional fileselector paths
  1256.     (such as file copying) are also memorized, but ONLY the source drive
  1257.     (ie: J:\) is saved to BELEF.CNF.
  1258.  
  1259.     Fileselector paths are quite flexible, meaning that you can change them
  1260.     at any time. The last accessed path is the path which will be memorized
  1261.     by the fileselector. So, if you configure J:\*.* as your temp path and
  1262.     then change it in the fileselector, Belef will ignore the "configured"
  1263.     path and register your new path as the temp path. NOTE that the old
  1264.     path will still remain in the panel display.
  1265.  
  1266.     The "saved paths" are used so that you don't need to set a path every
  1267.     time you use Belef.
  1268.  
  1269.     The ONLY path which NEEDS to remain the SAME is the path indicating the
  1270.     location of an archive utility.
  1271.  
  1272.  c) ABOUT ARCHIVE FILES
  1273.     -------------------
  1274.     An archive file is a file which contains one or more files which have
  1275.     been compressed into a single file. These files are created with
  1276.     archive utilities (programs capable of performing this function). The
  1277.     archive file is generally much smaller than all of the files in their
  1278.     uncompressed state. Files are generally compressed in this manner not
  1279.     only to maximize storage capacity (to allow you to keep more files
  1280.     on a disk using less space) but to allow collections of files to be
  1281.     distributed on Bulletin Board Systems.
  1282.  
  1283.  d) RAM DISKS
  1284.     ---------
  1285.     A RAM disk can best be described as a disk/drive which resides in memory
  1286.     ONLY. It does NOT "physically" exist. A RAM disk is installed through the
  1287.     use of a RAM disk program. The program is generally installed by way of
  1288.     the AUTO folder at bootup. Some RAM disks are also available as desk
  1289.     accessories, but these kind are NOT recommended. Changing a RAM disks
  1290.     size from within an accessory can severely fragment your computers
  1291.     memory (and lead to some VERY memorable crashes).
  1292.  
  1293.     The RAM disk, once installed, acts just like an additional disk drive.
  1294.     It has the advantages of quicker reads and writes and absence of physical
  1295.     wear and tear on a "real" disk/drive. The disadvantage is that the RAM
  1296.     disk allocates memory away from your system, leaving you with less
  1297.     RAM for other applications.
  1298.  
  1299.  e) NEW FORM_DO
  1300.     -----------
  1301.     FORM_DO is a function which takes over the management of an object form,
  1302.     until an object with EXIT or TOUCHEXIT "status" is selected (or clicked).
  1303.     The NEW form_do routine is actually an EVNT_MULTI (a function which
  1304.     waits for the occurrence of various events) routine masquerading as a
  1305.     form_do routine !-).
  1306.  
  1307.     The NEW form_do routine has been set up to look for all of the functions
  1308.     a normal form_do routine performs, plus more. The new routine allows you
  1309.     to select a button, or editing field, using the mouse button selected in
  1310.     the "prefs" panel.
  1311.  
  1312.     Since evnt_multi is in essence, "scanning" the panel to check for
  1313.     functions, you may find that it's response time is _slightly_ slower than
  1314.     a form_do routine. This is also due, in part, to limitations in GFA which
  1315.     sometimes make you "run all around the houses" to perform a simple
  1316.     function.
  1317.  
  1318.     If you find the slightly slower response time unbearable, you can switch
  1319.     back to the standard form_do routine using the method described under the
  1320.     appropriate section of this text file.
  1321.  
  1322.     NOTE: Alert boxes are called by GEM and use the standard form_do routine.
  1323.           There is no way Belef can affect them (meaning you'll have to use
  1324.           the left mouse button within alert boxes :-( .
  1325.  
  1326.  f) SAMPLE SESSION
  1327.     --------------
  1328.     Place the copy of the file BELEF.SET which comes with Belef in the SAME
  1329.     directory as BELEF.PRG and run BELEF.PRG.
  1330.  
  1331.     CONFIGURING
  1332.     -----------
  1333.     Click on the CONFIGURE button to call up the configuration screen.
  1334.  
  1335.     Select the PATHS button. When the alert appears, select UTIL. This will
  1336.     call up a fileselector. Locate and Select ARC.TTP. The FULL path and
  1337.     name of this utility should then appear on the top line of the panel.
  1338.  
  1339.     ie: F:\ARCSTUFF\ARC.TTP
  1340.  
  1341.     Select the PATHS button again and Select TEMP. Set the fileselector to
  1342.     the drive/directory in which your archived files will be located. Click
  1343.     on OKAY in the fileselector WITHOUT selecting a file. The TEMP path
  1344.     should then appear on the bottom of the panel.
  1345.  
  1346.     ie: J:\*.*
  1347.  
  1348.     If you wish to assign an alternate utility to this setup, select the
  1349.     LOAD button. Select the SIN button from the alert which appears. Locate
  1350.     and select one of the SIN files which comes with Belef. Repeat the
  1351.     procedures from the previous two paragraphs to set the utilities path
  1352.     and temp directory.
  1353.  
  1354.     Click on the "right" arrow on the bottom of the panel to scroll to setup
  1355.     number 2. Repeat the procedures from the last 3 paragraphs to setup
  1356.     your second utility. Once done, click on the "right" arrow to set
  1357.     setup number 2 in memory.
  1358.  
  1359.     Click on the SAVE button. Select SET from the alert. When the fileselector
  1360.     appears, enter the name of your SETup and click on OKAY in the selector.
  1361.     The SETup file contains your 2 utility setups. A SIN file contains a
  1362.     SINgle setup (the one currently displayed on screen).
  1363.  
  1364.     Click on the OKAY button on the bottom of the configure panel to return
  1365.     to the main panel.
  1366.  
  1367.  
  1368.     For the purpose of demonstration we'll assume you're using ARC.TTP
  1369.     (which uses the extender .ARC) and XLHARC.TTP (which uses the extender
  1370.     .LZH).
  1371.  
  1372.  
  1373.     EXTRACTING AN ARC FILE USING ARC.TTP v.6.02
  1374.     -------------------------------------------
  1375.     Click on the EXTRACT button on the top of the panel. Select any options
  1376.     you wish from the top half of the panel, ie: W/FOLDERS and/or OVERWRITE.
  1377.  
  1378.     Click on the BIG button labeled ARC on the top right. When the selector
  1379.     appears, select the ARC file you wish to extract and click on OKAY.
  1380.     When the second selector appears, select the drive/directory to which you
  1381.     wish the files extracted and click on OKAY in the selector. DO NOT
  1382.     select a file from the second selector.
  1383.  
  1384.     ie: 1st selector: F:\MYFILE.ARC
  1385.         2nd selector: J:\*.*
  1386.  
  1387.     When the alert appears, select either ALL (to extract all files), FOLDER
  1388.     (to have Belef create a folder and extract into IT), QUERY (to call up
  1389.     a query screen which allows you to select individual files within the
  1390.     archived file to extract) or CANCEL (to abort extraction).
  1391.  
  1392.     Belef will then send your instructions to the archive utility.
  1393.  
  1394.     CREATING AN LZH FILE USING XLHARC.TTP v.2.01
  1395.     --------------------------------------------
  1396.     Click on the ADD button on the bottom half of the panel. Select any 
  1397.     options you wish, ie: W/FOLDERS and/or OVERWRITE.
  1398.  
  1399.     NOTE: If you're planning on adding folders you MUST select the W/FOLDERS
  1400.           button.
  1401.  
  1402.     Click on the BIG button labeled LZH which appears below the arrows on the
  1403.     right side of the main panel. When the selector appears, select the drive/
  1404.     directory in which you wish your new LZH file to be created. Enter the
  1405.     name of the new LZH file you are creating and click on OKAY in the 
  1406.     selector.
  1407.  
  1408.     ie: I:\NEWFILE.LZH
  1409.  
  1410.     When the second selector appears, select the drive/directory in which the
  1411.     files you wish added to the archived file are located.
  1412.  
  1413.     ie: J:\*.*
  1414.  
  1415.     =~=~=~=~=~=~=~=~=~=
  1416.     SEE ALSO: Section 7
  1417.     =~=~=~=~=~=~=~=~=~=
  1418.  
  1419.     If you wish to add EVERY file on a selected drive TO the new archived
  1420.     file, select the drive and click on OKAY in the selector (WITHOUT entering
  1421.     ANYTHING on the selectors "selection" line).
  1422.  
  1423.     ie: J:\*.*
  1424.  
  1425.     If you wish to add files one at a time, select the SINGLE file you wish
  1426.     added so that its name appears on the "selection" line and click on the
  1427.     OKAY button in the selector.
  1428.  
  1429.     ie: J:\FILENAME.INF
  1430.  
  1431.     If you wish to add the entire contents of a folder, open the folder
  1432.     and click on OKAY in the fileselector (WITHOUT selecting any files).
  1433.  
  1434.     ie: J:\FOLDER\*.*
  1435.  
  1436.     If you wish to add the folder AND its contents, enter the name of the
  1437.     folder on the selectors "selection" line and click on the OKAY button
  1438.     in the fileselector (the W/FOLDERS option MUST be selected).
  1439.  
  1440.     ie: J:\FOLDER
  1441.  
  1442.     Belef will then send your instructions to the compression utility.
  1443.  
  1444.     LISTING EITHER FILE
  1445.     -------------------
  1446.     Select the LIST button and click on the corresponding compression
  1447.     utility button. Select the appropriate file and click on OKAY. Belef
  1448.     will then instruct the utility to list the contents of that file.
  1449.  
  1450.     OVERVIEW
  1451.     --------
  1452.     This is just an overview of how to perform these functions. In order to
  1453.     make FULL use of a compression utilities features you should really
  1454.     read the documentation which comes WITH the compression utility. It will
  1455.     more fully explain the purposes of all of its abilities.
  1456.  
  1457.  g) GROUP EXTRACTIONS/WILDCARDS
  1458.     ---------------------------
  1459.     While Belef itself does not directly support the extraction of more than
  1460.     one archived file at a time, MOST archiving utilities DO ! Simply follow
  1461.     these steps (for this example we'll assume you're using Quester's 
  1462.     !LHARC.TTP).
  1463.  
  1464.     Instead of selecting an individual file to extract, enter  *.LZH  on
  1465.     the selection line of the fileselector. Then proceed as you would
  1466.     normally. That's it ! !LHARC.TTP will extract ALL files in the selected
  1467.     directory ending in .LZH. If you only wish to extract files starting
  1468.     with the letter  C  , enter  C*.LZH  on the selection line.
  1469.  
  1470.     A WORD OF CAUTION
  1471.     -----------------
  1472.     As mentioned earlier, most LZH utilities (as of 12/26/93) do NOT work 
  1473.     with all .LZH formats. Therefore, such a utility could conceivably
  1474.     crash when attempting to say, extract, an unfamiliar format ! Because
  1475.     of this it is generally NOT a good idea to perform a group extraction
  1476.     unless you are certain the utility you are using will work on all of
  1477.     the archived files formats.
  1478.  
  1479.     It is the archive utilities responsibility to check for this, but
  1480.     unfortunately, most don't.
  1481.  
  1482.  h) ON SCREEN HELP
  1483.     --------------
  1484.     To receive additional on screen help simply hold down the [ALTERNATE]
  1485.     key when selecting a button. An alert will appear with a brief explanation
  1486.     of the function of the button.
  1487.  
  1488.     NOTE: Buttons whose function is obvious (ie: Okay, Exit, Cancel) or
  1489.           which call up selection alerts will NOT contain help alerts.
  1490.  
  1491.  i) WILDCARDS
  1492.     ---------
  1493.     Wildcards are characters which are used to replace characters in a
  1494.     filename which are not known. The wildcard  *  asterisk replaces any
  1495.     group of characters while the wildcard  ?  question mark replaces only 
  1496.     one character.
  1497.  
  1498.     For example, the search string  PICTURE.PI?  finds files with names like 
  1499.     PICTURE.PI1, PICTURE.PI2 or PICTURE.PI3. In this case, only one character
  1500.     of the filename was not known.
  1501.  
  1502.     The search string  *.PRG  finds files with names like  BELEF.PRG,
  1503.     PROFILE!.PRG  or  COLOR.PRG  . In this case we knew the extender of
  1504.     the file and merely wanted to know how many of these we had.
  1505.  
  1506.     You can also use these wildcards in any combination you like. For example,
  1507.     the string  NEODESK?.*  finds files like NEODESKM.INF, NEODESKL.MAC or
  1508.     NEODESKH.NOT .
  1509.  
  1510.  j) MISSING DISK SPACE
  1511.     ------------------
  1512.     If you've ever wondered why 716,026 "file bytes" won't fit on a disk
  1513.     formatted to 716,026 bytes or why 1024 bytes of disk space disappear
  1514.     when the only thing on the disk is a 21 byte file, read on...
  1515.  
  1516.     Formatting a disk basically sets up an "indexing" system (like a file
  1517.     catalog) on the disk. This is how your computer finds files...
  1518.  
  1519.     The disk is broken into "clusters" (or storage areas) with each
  1520.     cluster consisting (usually) of two 512 byte "sectors" (or one
  1521.     1024 byte cluster). Any files written to a disk are stored in these
  1522.     clusters.
  1523.  
  1524.     Once a cluster has been written to, it is marked as belonging to a
  1525.     specific file. When a new (or different) file is written to the disk,
  1526.     your computer bypasses this cluster (since it's "in use") and writes
  1527.     to the next free cluster it can find (even if there are still bytes
  1528.     available within the "in use" cluster). This is where your "disk
  1529.     space" seemingly disappears !
  1530.  
  1531.     You may have noticed something similar to this... Your computer says
  1532.     you have 840,704 bytes of free disk space available. This is true.
  1533.     You then copy a 21 byte file to that disk and discover that you now
  1534.     only have 839,680 bytes of disk space left. 840,704 minus 21 certainly
  1535.     doesn't equal 839,680 (at least in this universe :-). What happened..?
  1536.     Your 21 byte file is occupying the 1024 byte cluster (even though it
  1537.     is only using 21 bytes out of 1024). This cluster has now been marked
  1538.     as "in use" and those 1024 bytes have been subtracted from the disk
  1539.     totals. 840,704 - 839,680 = 1024 . No other files can be written to this
  1540.     sector as long as it is "in use". Since only 21 bytes are being used
  1541.     within this cluster, 1003 bytes of disk space are now doing nothing.
  1542.  
  1543.     If you increase the size of this 21 byte file, the extra bytes WILL
  1544.     be used by THIS file in THIS cluster. When the file size exceeds 1024
  1545.     bytes the computer "appropriates" the next free cluster, marks it as
  1546.     belonging to this file and continues writing the file to disk. This is
  1547.     where "disk fragmenting" comes in (we'll get to the point in a minute,
  1548.     I promise :-) .
  1549.  
  1550.     Say the 21 byte file occupies "cluster 1" . Now you write a second 21
  1551.     byte file to the disk (which occupies "cluster 2"). Then you increase
  1552.     the first file to 2000 bytes. File number 1 now occupies clusters 1
  1553.     and 3. The file is not "contiguous" on disk, which is why it is referred
  1554.     to as "fragmented". Your computer needs to move around the disk to find
  1555.     all of the "pieces" belonging to this file. Imagine this on a larger
  1556.     scale and you can see why it takes longer for your computer to access
  1557.     a fragmented file.
  1558.  
  1559.     Okay, the point ! If your computer says that there are 716,026 bytes
  1560.     available on the disk, it doesn't usually mean that you can fit 716,026
  1561.     bytes worth of files ON the disk. Remember, each file occupies "1024
  1562.     byte" clusters, whether it uses all of the bytes in that cluster or not.
  1563.  
  1564.     To find out how much actual "disk space" that file is using, do the
  1565.     following. Get the size of the file (ie: 11259) and divide it by 1024.
  1566.     11259/1024 = 10.995 . Round it up to 11 . Multiply 11 by 1024 to get
  1567.     the "actual" disk space used ( 11 x 1024 = 11264 ) by this file.
  1568.  
  1569.     "Borderline" file sizes can be determined this way. Get the file size
  1570.     (ie: 30725) and divide it by 1024 (answer: 30) . 30 x 1024 = 30720 .
  1571.     If this number is LESS than the file size, add 1024 to get the "actual"
  1572.     disk space used ( 1024 + 30720 = 31744 ). This file is "borderline"     
  1573.     because only 5 bytes of the file are occupying the 1024 byte cluster.
  1574.     The extra 1019 bytes within this cluster are essentially "lost" to you
  1575.     (unless you increase this specific files size, as mentioned above).
  1576.  
  1577.     By the way, folders use up 1024 bytes of disk space, not 0 (as implied
  1578.     by your computer). The folder occupies a cluster.
  1579.  
  1580.     Hopefully this gives you a "basic" idea of what is happening to all of
  1581.     that disk space you thought you had.
  1582.  
  1583.  k) SCRIPT INDIRECTION
  1584.     ------------------
  1585.     To use Belef's custom script indirection you will need a word processor
  1586.     capable of saving text in ASCII format.
  1587.  
  1588.     As described earlier, file indirection allows you to specify files to
  1589.     affect through the use of an ASCII text file. Although similar in
  1590.     principle to standard indirection, Belef indirection is sufficiently
  1591.     different to warrant a slightly varied approach. Standard indirection
  1592.     files and Belef indirection files are therefore NOT interchangeable !!!
  1593.  
  1594.     Belef indirection files allow you to perform up to 30 different archiving
  1595.     procedures by simply selecting a Belef indirection file ! A common use of
  1596.     this is to back up files and/or folders on your hard disk (although you
  1597.     can use it to do most anything). The file MUST follow some simple rules
  1598.     of organization in order for Belef to utilize it...
  1599.  
  1600.     B20.IND     <- The first line identifies this as a valid BELEF.IND file.
  1601.                    It MUST be followed immediately by a carriage RETURN.
  1602.     Y           <- The 2nd line can be either a Y (for yes) or N (for no).
  1603.                    When this line is Y, fileselectors set to the paths
  1604.                    specified in this file will appear. This gives you the
  1605.                    opportunity to both confirm your intentions and/or to 
  1606.                    change your script "on the fly". When this line is N,
  1607.                    the fileselectors will NOT appear.
  1608.  
  1609.    The remaining lines specify the paths and names of the files which will
  1610.    be sent to your archiving utility. You may specify up to 30 operations
  1611.    (or lines)...
  1612.  
  1613.    J:\MYFILE.LZH C:\DESKTOP.INF
  1614.  
  1615.    The first part of this line contains the full path and name of a file.
  1616.    It is followed by ONE blank space (this is important). After the ONE
  1617.    blank space you will enter the full path and name of the second file.
  1618.    ALL lines MUST be followed IMMEDIATELY by a carriage return !
  1619.  
  1620.    The file MUST then be saved with the extender IND, ie: DRIVE_C.IND.
  1621.  
  1622.  
  1623.    Let's try some examples...
  1624.  
  1625.    B20.IND
  1626.    Y
  1627.    J:\MYFILE.LZH C:\DESKTOP.INF
  1628.  
  1629.    Run Belef. Select the ADD command button. Hold down the [CONTROL] key
  1630.    and select the LZH (execute) button. Select your .IND file from the
  1631.    fileselector. Select YES from the alert. Belef will then instruct
  1632.    your archive utility to ADD the file C:\DESKTOP.INF to the archive
  1633.    J:\MYFILE.LZH.
  1634.  
  1635.    Okay...now you're probably thinking, so what. I can do that without a
  1636.    script. True...BUT...you can also use this method to add multiple files
  1637.    or folders WITHOUT having to select the files or enter a folders name.
  1638.    This is the indirection file I use to back up drive C of my hard disk...
  1639.  
  1640.    B20.IND
  1641.    N
  1642.    I:\AUTOFLDR.LZH C:\AUTO
  1643.    I:\ROOTACCS.LZH C:\*.AC?
  1644.    I:\MULTDESK.LZH C:\MULTDESK
  1645.    I:\ACCESORY.LZH C:\ACCS
  1646.    I:\NEODESK3.LZH C:\NEODESK3
  1647.  
  1648.    First I turn OFF the "pause after tos apps" option. I then select the ADD
  1649.    command and the W/FOLDERS option. I then hold down the [CONTROL] key while
  1650.    clicking on the LZH execute button. When the fileselector appears I select
  1651.    DRIVE_C.IND and select YES from the alert. I then go downstairs and make a
  1652.    cup of tea..!
  1653.  
  1654.    While I'm gone, Belef instructs the archive utility to add the contents of
  1655.    C:\AUTO to I:\AUTOFLDR.LZH, to add all accessories in drive C:\ to
  1656.    I:\ROOTACCS.LZH, to add the contents of C:\MULTDESK to I:\MULTDESK.LZH, to   
  1657.    add the contents of C:\ACCS to I:\ACCESORY.LZH and to add the contents of
  1658.    C:\NEODESK3 to the file I:\NEODESK3.LZH !  When I return, all 6 files
  1659.    are finished and waiting for me !
  1660.  
  1661.    You may use Belef indirection for any procedure which requires two paths.
  1662.    For example, you can also enter...
  1663.  
  1664.    I:\ARCHIVES\A*.LZH J:\
  1665.  
  1666.    This allows you to extract all files starting with the letter A and ending
  1667.    in LZH to drive J:\ .
  1668.  
  1669.    You MAY need to consult your archiving utilities documentation to determine 
  1670.    the exact filename syntax expected by that utility. For example, some
  1671.    utilities may not allow J:\ as a drive specification. You MAY need to enter
  1672.    it as J:\*.* . The enclosed .IND files are designed to help you over most
  1673.    of the rough spots.
  1674.  
  1675.  
  1676.    14)                       CONTROL CODES ADDENDUM
  1677.                              ----------------------
  1678.  
  1679.     The control codes may seem a little complicated and confusing at first.
  1680.     Once you start implementing them, however, you will see that they are
  1681.     really quite simple. This section will give you a more in depth look at
  1682.     what some of these codes are doing.
  1683.  
  1684.  
  1685.  a) INDIRECTION
  1686.     -----------
  1687.     Since the documentation which comes with ARC.TTP and !LHARC.TTP is
  1688.     vague on this subject, I thought I'd explain it here in a little more
  1689.     detail.
  1690.  
  1691.     File indirection basically allows you to specify files to affect through
  1692.     the use of an ASCII text file. This file contains the full paths and
  1693.     names of the files you wish, say, added, to your new archive file. If
  1694.     you have a specific set of files and/or folders which you regularly
  1695.     compress into an archive, the "indirection file" saves you the trouble
  1696.     of wading through countless directories to select them.
  1697.  
  1698.     The contents of one of these files would typically look like this;
  1699.  
  1700.     C:\DESKTOP.INF
  1701.     C:\AUTO\GDOS.PRG
  1702.     C:\CONTROL.INF
  1703.  
  1704.     The archiving utility reads the contents of this file and then adds
  1705.     any of these files it can find into the new archive file.
  1706.  
  1707.     ie: a myfile.arc @indirect.txt
  1708.  
  1709.         instructs ARC.TTP to add any files listed in "indirect.txt" to the
  1710.         archive file myfile.arc.
  1711.  
  1712.     ie: a myfile.lzh &indirect.txt
  1713.  
  1714.         instructs !LHARC.TTP to add any files listed in "indirect.txt" to the
  1715.         archive file myfile.lzh.
  1716.  
  1717.     ######################################################
  1718.     The "indirection" file MUST be saved in ASCII format !
  1719.     ######################################################
  1720.  
  1721.     The control code, control-i, instructs Belef to place the "indirection
  1722.     code" in front of the filename selected in the second selector.
  1723.  
  1724.     Now if you're getting confused, don't ! Just try it out to see how simple
  1725.     it is. First, create an ASCII text file containing the paths and names
  1726.     of the files you wish added to an archive. You can refer to INDIRECT.TXT
  1727.     for an example.
  1728.  
  1729.     Next, enter the character  @  (if using ARC.TTP) or  &  if using 
  1730.     !LHARC.TTP) after the ADD command,  a  , on the configuration screen.
  1731.     Last, enter the control code,  <control-i>  right after the  @  or  &
  1732.     character on the configuration screen.
  1733.  
  1734.     ie: CMND: a@<control-i>
  1735.  
  1736.     Now return to the Main Panel. Select ADD from the main panel buttons
  1737.     and click on the appropriate EXECUTE button. When the first fileselector
  1738.     appears, enter the name of the archive file. When the second selector
  1739.     appears, select the  "indirection file".  The archive utility will then
  1740.     read the "indirection file" and add any files listed within it to the
  1741.     archive file you specified. If the code has been entered properly, the
  1742.     prompt "select indirection file" will appear on the top of the screen
  1743.     when the second selector appears.
  1744.  
  1745.     If the correct codes ( @  or  & ) plus the control code ( control-i )
  1746.     have NOT been entered correctly, the archive utility will add your
  1747.     indirection file itself to the new archive.
  1748.  
  1749.     NOTE: If you have a file which begins with the "at" symbol,
  1750.           ie: @MYFILE.TXT, you MUST preceed this files name with a forward
  1751.     slash "/" so that ARC.TTP doesn't misinterpret it as an indirection
  1752.     file. You can do this from the "command" screen.
  1753.  
  1754.  
  1755.  b) DELETING/DISPLAYING FILES WITHIN AN ARCHIVE
  1756.     -------------------------------------------
  1757.     The control code, "control-q" instructs Belef to scan the archive file
  1758.     and then take you to the "Query" screen. From this screen you may select
  1759.     a file to "delete" or "display". After selecting the file, click on the
  1760.     "extract" button. The utility will then act upon the selected file.
  1761.  
  1762.     ARC.TTP documentation states that if no "redirect" command is issued,
  1763.     ie: >prn , then display is automatically sent to the screen (when 
  1764.     selecting the "p" (print) option). However, every copy of ARC602ST I've
  1765.     encountered sends output to the printer, no matter what you tell it.
  1766.     It is for this reason that you may not be able to "view" a text file
  1767.     from within an ARC file. If someone knows a way around this I'd 
  1768.     appreciate hearing about it !
  1769.  
  1770.  c) OPTION REDIRECTION
  1771.     ------------------
  1772.     This option was implemented in an attempt to find a way around the
  1773.     ARC problem mentioned in the last paragraph. In order to redirect
  1774.     output from within an ARC file, using ARC602ST, you must place the
  1775.     "redirection path" at the END of the command line (argument). This
  1776.     is a feature of ARC.TTP, not a "hack".
  1777.  
  1778.     ie: x myfile.arc mytext.txt >prn
  1779.  
  1780.     This is the way the command line must look in order for ARC.TTP to
  1781.     redirect the file output to the printer. <Control-r>, Belefs redirect
  1782.     code, takes the "option" from the main panel and places it at the end
  1783.     of the argument. It would normally appear immediately after the command.
  1784.  
  1785.     -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  1786.     NOTE: Belef will take EVERY selected option and place it at the end of
  1787.           the command line. For this reason you must be CERTAIN to ONLY
  1788.     select the option which specifies the redirection path.
  1789.     -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  1790.  
  1791.     In order to make use of it you MUST use it in conjunction with ARC.TTPs
  1792.     "print" command. I don't know of any other utility which redirects
  1793.     information in this way, but if you run into one, the feature's here.
  1794.  
  1795.     Incidentally, when I select "print" alone from ARC.TTP (even from the
  1796.     desktop), ARC.TTP posts the message "printing file" on the screen. When
  1797.     I use the >prn option, it STILL sends the file to the printer, but
  1798.     doesn't print ANYTHING on the screen. At first I thought my computer
  1799.     had locked up !
  1800.  
  1801.  
  1802.   15)                                INDEX
  1803.                                      -----
  1804.  
  1805.     ALERTS                                  
  1806.        Confirmation .......... 2a,2c        
  1807.        Extraction ............ 1g,6            
  1808.        Load .................. 3i
  1809.        Save .................. 3j
  1810.     ARCHIVE FILES                           
  1811.        About ................. 13           
  1812.     ARROWS                                  
  1813.        Main panel ............ 1e,1g           
  1814.        Configuration screen .. 3h           
  1815.     BUTTONS                                 
  1816.        Chain ................. 1d,4f
  1817.        Command (execute) ..... 1a           
  1818.        Command (configure) ... 3b           
  1819.        Convert ............... 1d,4f        
  1820.        Masks ................. 3h
  1821.        Options (select) ...... 1b           
  1822.        Options (configure) ... 3e           
  1823.        Select (prefs) ........ 2e
  1824.     CNF FILES ................ 3j           
  1825.     CUR FILES ................ 2d,3i
  1826.     COMMANDS
  1827.        Command line .......... 4b
  1828.        Entering .............. 3b
  1829.        Executing ............. 1c,4e
  1830.        Options (using) ....... 1b,4b
  1831.     CONFIGURING .............. 3
  1832.     CONTROL CODES ............ 3c
  1833.     DISK SPACE ............... 5d
  1834.        Clusters .............. 13j
  1835.        Fragmenting ........... 13j
  1836.     DISPLAY FILES ............ 3c,14b
  1837.     ENCRYPTION ............... 3f
  1838.     EXECUTE .................. 1c,4e
  1839.     FILE                   
  1840.        Clusters .............. 13j
  1841.        Command screen ........ 4c
  1842.        Copying ............... 5a
  1843.        Fragmenting ........... 13j
  1844.        Moving ................ 5a
  1845.        Deleting .............. 3c,5b,14b
  1846.        Renaming .............. 5c
  1847.     FILESELECTOR
  1848.        Command (PATHS) ....... 4g
  1849.        Configure (PATHS) ..... 3k
  1850.        Masks ................. 3h
  1851.        Messages .............. 13a
  1852.        Paths ................. 5f,5g,13b
  1853.     FOLDER
  1854.        Creating .............. 5e
  1855.        Deleting .............. 5f
  1856.        Extract to ............ 6b
  1857.        Renaming .............. 5g
  1858.     GROUP
  1859.        Extractions ........... 13g
  1860.        Wildcards ............. 13g
  1861.     HELP (on screen) ......... 13h
  1862.     HOLD SCREEN .............. 2b
  1863.     INDIRECTION .............. 3c,13k,14a
  1864.     LOAD
  1865.        Default files ......... 3i
  1866.     LOW RESOLUTION ........... 1g
  1867.     LZH
  1868.        Identifying formats ... 1e,1g
  1869.     MALLOC ................... 12
  1870.     MEMORY ................... 12
  1871.     MENU BAR ................. 5h
  1872.     MOUSE
  1873.        Buttons ............... 2e
  1874.        Cursor ................ 2d
  1875.        Snapping .............. 2d,12
  1876.        Wrapping .............. 2d
  1877.     NAMES
  1878.        Configure ............. 3d
  1879.     OPTIONS
  1880.        Buttons ............... 1b
  1881.        Configure ............. 3e
  1882.     OVERWRITE ................ 2c
  1883.     PASSWORDS ................ 3f
  1884.     PATHS
  1885.        Command screen ........ 4g
  1886.        Configure screen ...... 3k
  1887.     PREFERENCES
  1888.        Pause ................. 2b       
  1889.        Prompts ............... 2a
  1890.     PRN: ..................... 3c
  1891.     QUERY .................... 6c
  1892.     RADIO BUTTONS ............ 1a
  1893.     RAM DISK ................. 7,3g,13d
  1894.     REGISTRATION ............. 10
  1895.     SAVE ..................... 3j
  1896.     SCROLLING SETUPS ..........3h
  1897.     SET FILES ................ 3i,3j
  1898.     SIN FILES ................ 3j
  1899.     STANDARD OUTPUT .......... 3c,14c
  1900.     TEMPORARY DIRECTORIES
  1901.        Command screen ........ 4d,4g
  1902.        Configure screen ...... 3g
  1903.        Selecting ............. 7
  1904.        TEMP .................. 4a
  1905.     TOS APPLICATIONS
  1906.        Pause after ........... 2b
  1907.     TOS TAKES PARAMETERS ..... 4h
  1908.     UNCLEMOUSE ............... 2d
  1909.     UTILITY
  1910.        Command screen ........ 4g
  1911.        Configure screen ...... 3a,3k
  1912.     WILDCARDS ................ 13i
  1913.        Copy/Move File(s) ..... 5a
  1914.        Delete File(s) ........ 5b
  1915.        Extractions ........... 13g
  1916.     ZOO FILES ................ 12
  1917.  
  1918.  
  1919.     FGCFBA 122793
  1920.